package com.zyd.work.logic.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.zyd.work.dao.IMonthLogDAO;
import com.zyd.work.domain.vo.MonthLog;
import com.zyd.work.logic.IMonthLogFacade;
@Service("monthLogImpl")
public class MonthLogImpl implements IMonthLogFacade {
	private IMonthLogDAO monthLogDAOImpl;
	@Resource(name="monthLogDAOImpl")
	public void setMonthLogDAOImpl(IMonthLogDAO monthLogDAOImpl) {
		this.monthLogDAOImpl = monthLogDAOImpl;
	}

	@Override
	public void addMonthLog(MonthLog monthlog) {
		// TODO Auto-generated method stub
		monthLogDAOImpl.addMonthLog(monthlog);
	}

	@Override
	public void updateMonthLog(MonthLog monthlog) {
		// TODO Auto-generated method stub
		monthLogDAOImpl.updateMonthLog(monthlog);
	}

	@Override
	public void deleteMonthLog(MonthLog monthlog) {
		// TODO Auto-generated method stub
		monthLogDAOImpl.deleteMonthLog(monthlog);
	}

	@Override
	public void deleteMonthLogbyId(String id) {
		// TODO Auto-generated method stub
		monthLogDAOImpl.deleteMonthLogbyId(id);
	}

	@Override
	public MonthLog getMonthLogById(String id) {
		// TODO Auto-generated method stub
		return monthLogDAOImpl.getMonthLogById(id);
	}

	@Override
	public List<MonthLog> getAllMonthLog() {
		// TODO Auto-generated method stub
		return monthLogDAOImpl.getAllMonthLog();
	}

	@Override
	public List<MonthLog> getMonthLogByUserid(String monthofyear, String userid) {
		// TODO Auto-generated method stub
		return monthLogDAOImpl.getMonthLogByUserid(monthofyear, userid);
	}

	@Override
	public List<MonthLog> getMonthLogByMonthofyear(String monthofyear) {
		// TODO Auto-generated method stub
		return monthLogDAOImpl.getMonthLogByMonthofyear(monthofyear);
	}

	@Override
	public List<MonthLog> searchMonthLogByUserid(String startmonth,
			String endmonth, String userid) {
		// TODO Auto-generated method stub
		return monthLogDAOImpl.searchMonthLogByUserid(startmonth, endmonth, userid);
	}

	@Override
	public List<MonthLog> searchMonthLog(String startmonth, String endmonth) {
		// TODO Auto-generated method stub
		return monthLogDAOImpl.searchMonthLog(startmonth, endmonth);
	}

}
